import 'package:flutter_blog_manage_study/ui/page/home/home_binding.dart';
import 'package:flutter_blog_manage_study/ui/page/login/login_binding.dart';
import 'package:flutter_blog_manage_study/ui/page/login/login_page.dart';
import 'package:flutter_blog_manage_study/ui/page/splash/splash_binding.dart';
import 'package:flutter_blog_manage_study/ui/page/splash/splash_page.dart';
import 'package:get/get.dart';

import '../ui/page/home/home_page.dart';

/// * 作者: Tao
/// * 日期: 2024/3/22
/// * 时间: 10:12
/// * 描述: 路由管理
class Routes {

  /// 入口模块
  static const String splashPage = '/splash';
  /// 登录模块
  static const String loginPage = '/login';
  /// 注册
  static const String registerPage = '/register';
  /// 主页
  static const String homePage = '/home';

  /// 路由页面
  static final routePage = [
    GetPage(
        name: splashPage,
        page: () => const SplashPage(),
        binding: SplashBinding()),
    GetPage(
        name: loginPage,
        page: () => const LoginPage(),
        binding: LoginBinding()),
    GetPage(
        name: homePage,
        page: () => const HomePage(),
        binding: HomeBinding()),
  ];
}